package com.blb.community.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.blb.community.mapper.ZyOwnerMapper;
import com.blb.community.pojo.VO.OwnerUpdate;
import com.blb.community.pojo.ZyOwner;
import com.blb.community.service.ZyOwnerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ZyOwnServiceImpl extends ServiceImpl<ZyOwnerMapper, ZyOwner> implements ZyOwnerService {

    @Resource
    private ZyOwnerMapper zyOwnerMapper;
    @Override
    public ZyOwner getOwner(String phoneNumber) {
        return zyOwnerMapper.getOwner(phoneNumber);
    }

    @Override
    public void updateOwner(OwnerUpdate ownerUpdate) {
        zyOwnerMapper.updateOwner(ownerUpdate);
    }
}
